<template>
  <mt-swipe :auto="4000">
    <mt-swipe-item v-for="item in list" :key="item.img">
      <img :src="item.img" :class="{full: isfull}" />
    </mt-swipe-item>
  </mt-swipe>
</template>

<script>
export default {
  props: ["list", "isfull"]
};
</script>

<style lang="scss" scoped>
.mint-swipe {
  height: 200px;

  .mint-swipe-item {
    text-align: center;
    img {
      height: 100%;
    }
  }
}

.full {
  object-fit: cover; /* 图片超出居中裁剪 */
  width: 100%;
}
</style>